//
//  BQNavigationController.m
//  BeeQuick
//
//  Created by mac on 16/11/19.
//  Copyright © 2016年 six_group. All rights reserved.
//

#import "BQNavigationController.h"

@interface BQNavigationController ()

@end

@implementation BQNavigationController

- (void)viewDidLoad {
    [super viewDidLoad];
    
   

}

- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated
{
    
    UIBarButtonItem *scanBarButton = [[UIBarButtonItem alloc]initWithImage:[UIImage imageNamed:@"icon_black_scancode"] style:UIBarButtonItemStylePlain target:self action:@selector(scan:)];
    
    
    [viewController.navigationItem setLeftBarButtonItem:scanBarButton];
    
    UIBarButtonItem *rightBarButton = [[UIBarButtonItem alloc]initWithImage:[UIImage imageNamed:@"icon_search"] style:UIBarButtonItemStylePlain target:self action:@selector(search:)];
    
    [viewController.navigationItem setRightBarButtonItem:rightBarButton];
    
    
    [super pushViewController:viewController animated:animated];
}

//MARK: - 扫一扫.
- (void)scan:(UIBarButtonItem*)btn
{
    NSLog(@"我是扫一扫");
}

//MARK: - 搜一搜.
- (void)search:(UIBarButtonItem *)btn
{
    NSLog(@"我是搜一搜");
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
